using Microsoft.AspNetCore.Mvc;
using Zhaoxi.Zhihu.HttpApi.Infrastructure;
using Zhaoxi.Zhihu.UseCases.AppUsers.Commands;
using Zhaoxi.Zhihu.UseCases.AppUsers.Queries;

namespace Zhaoxi.Zhihu.HttpApi.Controllers;

public class AppUserController:ApiControllerBase
{
    [HttpGet("{id:int}")]
    public async Task<IActionResult> Get(int id)
    {
        var result = await Sender.Send(new GetUserInfoQuery(id));

        return ReturnResult(result);
    }

    
}